package cn.limeizi.ssm.controller.api;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.limeizi.ssm.po.Special;
import cn.limeizi.ssm.po.Tv;
import cn.limeizi.ssm.service.SpecialService;
import cn.limeizi.ssm.service.TvService;

@RestController
@RequestMapping("/api/specil")
public class ApiSpecil {
	@Autowired
	private TvService tvService;
	@Autowired
	private SpecialService specialService;
	
	@RequestMapping("/tvids")
	public List<Tv> getTVSByTVIDS(){
		
		
		List<Tv> tvs=tvService.selectAll();
		
		return tvs;
	}
	
	@RequestMapping("/updatetvids")
	public String updateTvids(Integer id,String tvids){
		
		
		return "1";
		
	}

}
